import request from '../../utils/request';

export const fetchPageList = (query) => {
    return request({
        url: '/bbs/post/page',
        method: 'post',
        data: query
    })
}

export const addPost = (query) => {
    return request({
        url: '/bbs/post/save',
        method: 'post',
        data: query
    })
}

export const getDetails = (query) => {
    return request({
        url: '/bbs/post/details',
        method: 'post',
        data: query
    })
}

export const updatePost = (query) => {
    return request({
        url: '/bbs/post/update',
        method: 'post',
        data: query
    })
}

export const deletePost = (query) => {
    return request({
        url: '/bbs/post/delete',
        method: 'post',
        data: query
    })
}
